package com.tdd;

import static org.junit.Assert.*;

import java.math.BigDecimal;

import org.junit.Test;

public class SumTest {
	@Test
	public void sum() {
		HpStack stack = new HpStack();
		stack.push(new BigDecimal(4));
		stack.push(new BigDecimal(9));
		stack.push(new BigDecimal(2.5));
		new Sum().operate(stack);
		assertEquals(15.5, stack.peek());
	}
}
